home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
oath.lha
/
oath
/
src
/
dlNodeP.cc
< prev
next >
Wrap
C/C++ Source or Header
|
1991-08-29
|
2KB
|
49 lines
//***************************************************************************
// OATH :: Object-oriented Abstract Type Hierarchy
//***************************************************************************
//
// Copyright (C) 1991, 1990 Texas Instruments Incorporated
// Permission is granted to any individual or institution
// to use, copy, modify, and distribute this software,
// provided that this complete copyright and permission notice
// is maintained, intact, in all copies and supporting documentation.
//
// Texas Instruments Incorporated provides this software "as is"
// without express or implied warranty.
//
//***************************************************************************
// dlNodeP
//
// History:
// 10/90 Brian M Kennedy Major Rewrite
// 02/90 Brian M Kennedy Original
//
//***************************************************************************
#include "copyright.h"
#include <oath/dlNodeP.h>
/////////////////////////////////////////////////////////////////////////////
// dlNodeP Outline Definitions
// Dynamic Allocation
#ifdef OATH_HANDLE_NEW
int dlNodeP::AllocateCount = 10;
dlNodeP *dlNodeP::FreeList = 0;
void dlNodeP::
allocate ()
{FreeList = (dlNodeP*) new char [sizeof(dlNodeP) * AllocateCount];
for(int I = 0; I < AllocateCount-1; I++)
FreeList[I].Next = &FreeList[I+1];
FreeList[AllocateCount-1].Next = 0;
}
#endif
//***************************************************************************